﻿
using Gfs.Smcrypto;
namespace GfsDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            //Sm4Crypto sM4Utils = new Sm4Crypto();
            //sM4Utils.Data="够";
            //var aaa = Sm4Crypto.EncryptCBC(sM4Utils);
            //sM4Utils.Data = aaa;
            //var aaa1 = Sm4Crypto.DecryptCBC(sM4Utils);
            SM4Utils sM4Utils = new SM4Utils();
            sM4Utils.secretKey = "B***************************D";
            //string data = "{'lx':'1','wxid':'','ehealth_code_id':'68A018036186B717CC1B051C10996F4EEE805F5F81EB1594C9EB43592545F7F6','ehealth_code':'68A018036186B717CC1B051C10996F4EEE805F5F81EB1594C9EB43592545F7F6','xm':'测试'}";
            string data = "{\"lx\":\"1\",\"wxid\":\"\",\"ehealth_code_id\":\"68A018036186B717CC1B051C10996F4EEE805F5F81EB1594C9EB43592545F7F6\",\"ehealth_code\":\"68A018036186B717CC1B051C10996F4EEE805F5F81EB1594C9EB43592545F7F6\",\"xm\":\"测试\"}";
            var aaa = sM4Utils.加密(data);
            var aaa1 = sM4Utils.解密(aaa);
           

        }
        
    }
}
